package com.example.department.web.swagger;

import com.example.department.model.LoginToken;
import io.swagger.annotations.Api;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.LinkedHashMap;
import java.util.Map;

@Api(tags = "登陆接口", produces = "application/json")
public interface LoginControllerSwagger {

    @Operation(summary = "login1", method = "POST")
    public Map<String, Object> login1(String username, String password);

    @Operation(summary = "login2", method = "POST")
    public Map<String, Object> login2(LoginToken loginToken);

    @Operation(summary = "login3", method = "POST")
    public Map<String, Object> login3(@RequestBody LoginToken loginToken);

}
